Skip to content

Comments

update uptrace dependencies to fix docker build#262

Closed
lmolkova wants to merge 1 commit intografana:mainfrom
lmolkova:fix-docker-build
Closed

update uptrace dependencies to fix docker build#262
lmolkova wants to merge 1 commit intografana:mainfrom
lmolkova:fix-docker-build

Conversation

@lmolkova
Copy link
Contributor

This PR updates uptrace, all meaningful changes are in the go.mod, the rest is in the vendor folder.


make docker-build fails with

0.175 go: ignoring package golang.org/x/exp/constraints which exists in the vendor directory but is missing from vendor/modules.txt. To sync the vendor directory run go mod vendor.
0.209 vendor/modernc.org/libc/libc_all.go:12:2: cannot find module providing package golang.org/x/exp/constraints: import lookup disabled by -mod=vendor
0.209   (Go version in go.mod is at least 1.14 and vendor directory exists.)
------
Dockerfile:22
--------------------
  20 |     # Disable CGO in order to build a completely static binary, allowing us to use the binary in a container
  21 |     # with uses a different distribution of libc.
  22 | >>> RUN CGO_ENABLED=0 go build -o /bin/quickpizza ./cmd
  23 |     
  24 |     FROM gcr.io/distroless/static-debian11@sha256:1dbe426d60caed5d19597532a2d74c8056cd7b1674042b88f7328690b5ead8ed
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c CGO_ENABLED=0 go build -o /bin/quickpizza ./cmd" did not complete successfully: exit code: 1

after running go mod vendor it turns our that there is some version conflict between uptrace dependencies

3.607 vendor/github.com/uptrace/bun/dialect/sqlitedialect/dialect.go:31:30: cannot use d (variable of type *Dialect) as schema.Dialect value in argument to schema.NewTables: *Dialect does not implement schema.Dialect (missing method AppendSequence)

3.614 # github.com/uptrace/bun/dialect/pgdialect
3.614 vendor/github.com/uptrace/bun/dialect/pgdialect/append.go:155:25: cannot use d (variable of type *Dialect) as schema.Dialect value in argument to schema.Appender: *Dialect does not implement schema.Dialect (missing method AppendSequence)

3.614 vendor/github.com/uptrace/bun/dialect/pgdialect/dialect.go:34:30: cannot use d (variable of type *Dialect) as schema.Dialect value in argument to schema.NewTables: *Dialect does not implement schema.Dialect (missing method AppendSequence)
------

@lmolkova
Copy link
Contributor Author

closing in favor of #264

@lmolkova lmolkova closed this Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant